<?php session_start();
if ($_SESSION['PeId'] != 0){	
session_unset();				//Leert alle Variablen der Session
session_destroy();				//Beendet die Session.
header ("Location:login.php");	
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Message Hub</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<script type="text/javascript" src="scripts/javascript.js"></script>
</head>
<body>
   <!-- Begin Wrapper -->
   <div id="wrapper">
   
         <!-- Begin Header -->
         <div id="header">
                        <?php
                                include("include/header.html");
                        ?>      
                 </div>
                 <!-- End Header -->
                 
         <!-- Begin Faux Columns -->
                 <div id="faux">
                 
                       <!-- Begin Left Column -->
                       <div id="leftcolumn">
                                <?php
                                        include("include/menu.php");
                                ?>
                       </div>
                       <!-- End Left Column -->
                 
                       <!-- Begin Right Column -->
                       <div id="rightcolumn">
                                         
                                         <h1>Login</h1>  
                                         
                                     <p>
                                         
                                               Lorem ipsum dolor sit amet, consetetur sadipscing elitr, 
                                                   sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, 
                                                   sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. 
                                                   Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 
                                                   Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor 
                                                   invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. 
                                                   At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, 
                                                   no sea takimata sanctus est Lorem ipsum dolor sit amet.                 
                                                   
                                     </p><br/>
										<form name="login" method="POST">
											<table>
												<tr>
													<td>
														<label for="username">Username </label>
													</td>
													<td>
														<input type="text" name="username" id="username" onkeydown="return evaluateSubmit(event, logincheck);" onkeyup="return evaluateSubmit(event, logincheck);"/>
													</td>
												</tr>
												<tr>
													<td>
														<label for="password">Password </label>
													</td>
													<td>
														<input type="password" name="password" id="password" onkeydown="return evaluateSubmit(event, logincheck);" onkeyup="return evaluateSubmit(event, logincheck);"/>
													</td>
													<td id="wrong"></td>
												</tr>
												<tr>
													<br/>
													<td>
														<button type="button" name="finish" onclick="logincheck()">Send</button>
													</td>
													
												</tr>
											</table>
										</form>
                           <div class="clear"></div>
                           
                       </div>
                       <!-- End Right Column -->
                           
                           <div class="clear"></div>
                           
         </div>    
         <!-- End Faux Columns --> 
         <!-- Begin Footer -->
         <div id="footer">
                        <?php
                                include("include/footer.html");
                        ?>              
         </div>
                 <!-- End Footer -->
   </div>
   <!-- End Wrapper -->
</body>
</html>
